<script setup>
import { ref } from 'vue'

const {add} =defineProps(['add'])
let name = ref('')
const addTask = () => {
  add(name.value)
  name.value = ''
}


</script>

<template>
  <div>
    <input v-model="name" type="text" placeholder="请添加任务清单task">
    <button @click="addTask">添加</button>
  </div>
</template>

<style scoped>

</style>
